//
//  baseboard.h
//  警用舆情平台
//
//  Created by 魏强 on 15/5/15.
//  Copyright (c) 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol baseboardDelegate;
@class KDBaseBoardModel;
@interface KDBaseBoard : UIView
@property (nonatomic, weak) id<baseboardDelegate>delegate;
@property (nonatomic, strong) NSDate * curDate;//当前日期
@property (nonatomic, strong) KDBaseBoardModel *model;
@property (nonatomic, assign) NSInteger showReginType;
/**
 *  主页类型：是预警还是巡查
 */
@property (nonatomic, copy) NSString * mainPageType;
/**
 *  预警类型：
 *  涉警类  1；维稳类 2； 治安类 3；
 *  责任类型
 *  1 网站巡查 2 专题巡查 3 红名单巡查 4 黑名单巡查
 */
@property (nonatomic, copy) NSString * parentIdstr;
- (void)refreshTitle;

+ (instancetype)baseboard;
@end
@protocol baseboardDelegate <NSObject>
/**
 *  发送消息给主页，确定按钮被点击了
 */
- (void)baseBoard:(KDBaseBoard *)baseBoard confirmBtnDidClickWithBaseBoardModel:(KDBaseBoardModel *)model;
@optional
- (void)beginBtnClick;
@end